package com.company.pojo;

/**
 * 比萨接口（抽象产品）
 */
public abstract class Pizza {

    public StringBuilder pizzaName = new StringBuilder();

    public void serveStep(){
        this.prepare();
        this.bake();
        this.cut();
        this.box();
    }

    public void prepare() {
        System.out.println("开始准备" + this.pizzaName);
    }

    public void bake() {
        System.out.println("开始烘焙" + this.pizzaName);
    }

    public void cut() {
        System.out.println("开始将" + this.pizzaName + "分块");
    }

    public void box() {
        System.out.println("开始打包" + this.pizzaName);
    }

}
